//正例
type MyType = Readonly<{
  prop: string;
  method(): string;
}>;

type MyOtherType = {
  readonly prop: string;
  readonly method: () => string;
};
function bar(arg: MyOtherType) {}